package com.ruoyi.fetv.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.aspect.annotation.Dict;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 图片对象 fetv_image
 *
 * @author Jack
 * @date 2023-03-07
 */
@ApiModel(value = "FetvImage", description = "图片对象fetv_image")
public class FetvImage extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", required = true)
    private Long id;

    /**
     * 图片位置（字典）
     */
    @ApiModelProperty(value = "图片位置（字典fetv_image_location）", required = true)
    @Excel(name = "图片位置", readConverterExp = "字=典")
    @Dict("fetv_image_location")
    private Long location;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址", required = true)
    @Excel(name = "图片地址")
    private String url;

    /**
     * 说明
     */
    @ApiModelProperty(value = "说明", required = true)
    @Excel(name = "说明")
    private String illustrate;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", required = true)
    @Excel(name = "排序")
    private Long sort;

    /**
     * 跳转方式(字典）
     */
    @ApiModelProperty(value = "跳转方式(字典fetv_jump_mode）", required = true)
    @Excel(name = "跳转方式(字典）")
    @Dict("fetv_jump_mode")
    private Long jumpMode;

    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    /**
     * 状态（0正常 1停用）
     */
    @ApiModelProperty(value = "状态（0正常1停用）", required = true)
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @Dict("fetv_yes_no")
    private String status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在2代表删除）", required = true)
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getLocation() {
        return location;
    }

    public void setLocation(Long location) {
        this.location = location;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIllustrate() {
        return illustrate;
    }

    public void setIllustrate(String illustrate) {
        this.illustrate = illustrate;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getJumpMode() {
        return jumpMode;
    }

    public void setJumpMode(Long jumpMode) {
        this.jumpMode = jumpMode;
    }

    public Date getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(Date releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("location", getLocation())
                .append("url", getUrl())
                .append("illustrate", getIllustrate())
                .append("sort", getSort())
                .append("jumpMode", getJumpMode())
                .append("releaseTime", getReleaseTime())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
